<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let name = '李唯一'
  let age = 18

  // 简介表示法 属性名和变量名一样
  let obj = {
    name,
    age
  }
  console.log(obj)

  // Object.is  比较两个值是否相等
  console.log(NaN === NaN) //false
  console.log(Object.is(NaN, NaN))//true
  console.log(+0 === -0) //true
  console.log(Object.is(+0, -0))//false
</script>

</html>